<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>${title}</title>
		<script type="text/javascript" src="${ctx}/static/scripts/check_all.js"></script>
		<script type="text/javascript">
			function init(){
				parent.waiting_stop();
			}
			function changeStyle(obj){
			  	ec_showContent(obj,"700px");
			}
		</script>
	</head>
	<body onload="init()">
		<ec:table items="list" var="v" title="" width="100%"
			retrieveRowsCallback="process" filterRowsCallback="process"
			maxRowsExported="1000" pageSizeList="15,30,50,all" useAjax="false"
			rowsDisplayed="15" sortable="false" filterable="false"
			resizeColWidth="true" classic="true" minHeight="200"
			excludeParameters="checkAll,ID_,id"
			toolbarContent="extend status|pagejump|navigation|pagesize|refresh"
			action="${ctx}/partsOut/list">
			<ec:row style="text-align: center;">
				<ec:column property="ID_"
					title="<input type='checkbox' name='checkAll' onclick='check_all(this.form,this.form.id)'>"
					style="text-align:center;width:34px;" sortable="false">
					<input type='checkbox' value='${v.order_id}@@${v.pnum1}@@${v.pnum2}' name='id' id="id" onclick="check_item(this.form,this.form.id)" ></input>
				</ec:column>
				<ec:column property="serial" title="序号" style="text-align:center;width:30px;">${GLOBALROWCOUNT}</ec:column>
				<ec:column property="order_id" title="订单编号" ><a href="javascript:void(0)" onclick="parent.view('${v.order_id}')">${v.order_id}</a></ec:column>
				<ec:column property="service_user_" title="业务员" >${v.service_user_}</ec:column>
				<ec:column property="cust_id_" title="用户单位">${v.cust_id_}</ec:column>
				<ec:column property="num1" title="数量">${v.num1}个</ec:column>
				<ec:column property="opt_user_" title="检测组长">${v.leader_id_}</ec:column>
				<ec:column property="pnum1" title="配件总数">${v.pnum1}</ec:column>
				<ec:column property="pnum2" title="已出库数">${v.pnum2}</ec:column>
				<ec:column property="status" title="出库状态">
					<c:choose>
						<c:when test="${v.pnum2 eq 0}"><span style="color: red;">未出库</span></c:when>
						<c:when test="${v.pnum1 eq v.pnum2}"><span style="color: green;">已出库</span></c:when>
						<c:otherwise><span style="color: green;">部分出库</span></c:otherwise>
					</c:choose>
				</ec:column>
			</ec:row>
		</ec:table>
	</body>
</html>